package com.zzc.fwzpxt.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zzc.fwzpxt.entity.Product;
import com.baomidou.mybatisplus.service.IService;
import com.zzc.fwzpxt.entity.ProductVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * <p>
 * 产品 product 服务类
 * </p>
 *
 * @author XiaoBingBy
 * @since 2017-09-28
 */
public interface IProductService extends IService<Product> {

    Page<ProductVo> selectMyPage(Page<ProductVo> page, EntityWrapper<ProductVo> entityWrapper);

    /**
     * 随机查询4条产品信息
     * @return
     */
    List<Product> findRandProduct4();

    /**
     * 产品详细信息
     * @return
     */
    ProductVo findById(Integer id);
}
